home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / utils / disk-man / linux-fl.000 / linux-fl / linux-floppies / building-blocks / SETdevice < prev    next >
Encoding:
Text File  |  1996-04-04  |  629 b   |  30 lines

  1. #!/bin/sh
  2. rm -f /tmp/SeTDS /tmp/SeTmount
  3. cat << EOF > /tmp/tmpmsg
  4.  
  5.     Select device file that 
  6.     corresponds to your drive.
  7.  
  8. EOF
  9.  
  10. dialog     --title "SELECT FLOPPY DRIVE" \
  11.     --menu "`cat /tmp/tmpmsg`" 12 50 2 \
  12. "/dev/fd0"     "Generic floppy in drive A:" \
  13. "/dev/fd1"     "Generic floppy in drive B: " \
  14. #"/dev/fd0H1440" "1.44M drive a:" \
  15. #"/dev/fd1H1440" "1.44M drive b:" \
  16. #"/dev/fd0h1200" "1.2M drive a:" \
  17. #"/dev/fd1h1200" "1.2M drive b:" \
  18. 2> /tmp/whichdrv
  19.  
  20. if [ $? = 1 -o $? = 255 ]; then
  21.  rm -f /tmp/whichdrv /tmp/tmpmsg
  22.  exit
  23. fi
  24.  
  25. rm -f /tmp/tmpmsg
  26.  
  27. mv /tmp/whichdrv /tmp/SeTsource
  28. echo "" > /tmp/SeTDS
  29. echo "" > /tmp/SeTmount
  30.